package com.jdd.modules.parking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 工作站
 * @Author: jdd
 * @Date: 2021-11-05
 * @Version: V1.0
 */
@Data
@TableName("park_work_station")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "park_work_station对象", description = "工作站")
public class ParkWorkStation {

    /**
     * 主键
     */
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "编号")
    private String id;
    /**
     * 停车场名称
     */
    @Excel(name = "停车场编码", width = 15)
    @ApiModelProperty(value = "停车场编码")
    private String parkCode;
    /**
     * 停车场名称
     */
    @Excel(name = "停车场名称", width = 15)
    @ApiModelProperty(value = "停车场名称")
    private String parkName;
    /**
     * 工作站名称
     */
    @Excel(name = "工作站名称", width = 15)
    @ApiModelProperty(value = "工作站名称")
    private String workName;
    /**
     * 终端类型
     */
    @Excel(name = "终端类型", width = 15)
    @ApiModelProperty(value = "终端类型")
    private Integer terminalType;
    /**
     * 当前操作员名
     */
    @Excel(name = "当前操作员名", width = 15)
    @ApiModelProperty(value = "当前操作员名")
    private String operationName;
    /**
     * 当前操作员真实姓名
     */
    @Excel(name = "当前操作员真实姓名", width = 15)
    @ApiModelProperty(value = "当前操作员真实姓名")
    private String realName;
    /**
     * 上班时间
     */
    @Excel(name = "上班时间", width = 15)
    @ApiModelProperty(value = "上班时间")
    private String upTime;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**
     * 状态
     */
    @Excel(name = "状态状态，0离线，1在线", width = 15)
    @ApiModelProperty(value = "状态状态，0离线，1在线")
    private String status;
    /**
     * IP地址
     */
    @Excel(name = "IP地址", width = 15)
    @ApiModelProperty(value = "IP地址")
    private String ipAddr;
    /**
     * 操作人ID
     */
    @Excel(name = "操作人ID", width = 15)
    @ApiModelProperty(value = "操作人ID")
    private String usedUserId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
